package cn.com.xf.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.xf.dao.TblSiteAppDao;
import cn.com.xf.domain.TblSiteApp;
import cn.com.xf.service.TblSiteAppService;

@Service
public class TblSiteAppServiceImpl implements TblSiteAppService {

	@Autowired
	private TblSiteAppDao tblSiteAppDao;
	
	@Override
	public void addXfAndroidBee(TblSiteApp app) {
		TblSiteApp tblSiteApp = tblSiteAppDao.select();
		if (tblSiteApp == null) {
			tblSiteAppDao.insert(app);
		} else {
			tblSiteAppDao.update(app);
		}
	}

}
